set     more off
set     matsize 800
clear   all
global  dpath = "[Userpath]\data and code"

***TableAIII PanelA***
use "$dpath\data\TableAIIIPanelA.dta", clear
ttest automaticcod = manualcod

***TableAIII PanelB***
use "$dpath\data\TableAIIIPanelBC.dta", clear
ttest codbefore=codafter if upstream==1

***TableAIII PanelB***
use "$dpath\data\TableAIIIPanelBC.dta", clear
ttest codbefore=codafter if downstream ==1